package vo.yahoo;

import java.util.ArrayList;
import java.util.List;

public class Message{
	private String mid = null;
	private String receivedDate = null;
	private String subject = null;
	private String fromEmail = null;
	private String fromName = null;
	private String replyToEmail = null;
	private String replyToName = null;
	private String toEmail = null;
	private String toName = null;
	private List parts = new ArrayList() ; // VERY IMPORTANT TO DECLARE NEW ARRAYLIST!!!
	private String xapparentlyto = null;
	public String getFromEmail() {
		return fromEmail;
	}
	public void setFromEmail(String fromEmail) {
		this.fromEmail = fromEmail;
	}
	public String getFromName() {
		return fromName;
	}
	public void setFromName(String fromName) {
		this.fromName = fromName;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public List getParts() {
		return parts;
	}
	public void setParts(List msgParts) {
		this.parts = msgParts;
	}
	public void addPart(MessagePart part) {
		parts.add(part);
	}
	public String getReceivedDate() {
		return receivedDate;
	}
	public void setReceivedDate(String receivedDate) {
		this.receivedDate = receivedDate;
	}
	public String getReplyToEmail() {
		return replyToEmail;
	}
	public void setReplyToEmail(String replyToEmail) {
		this.replyToEmail = replyToEmail;
	}
	public String getReplyToName() {
		return replyToName;
	}
	public void setReplyToName(String replyToName) {
		this.replyToName = replyToName;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getToEmail() {
		return toEmail;
	}
	public void setToEmail(String toEmail) {
		this.toEmail = toEmail;
	}
	public String getToName() {
		return toName;
	}
	public void setToName(String toName) {
		this.toName = toName;
	}
	public String getXapparentlyto() {
		return xapparentlyto;
	}
	public void setXapparentlyto(String xapparentlyto) {
		this.xapparentlyto = xapparentlyto;
	}
}
